//
//  ProtocolBaseDataSecurity.h
//  Etion
//
//  Created by  user on 11-6-22.
//  Copyright 2011 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ProtocolBase.h"

@interface CProtocolBase(ProtocolBaseDataSecurity) 

-(int)IsNeedEncodeCompressProtocol:(int)nProtocolid;

-(void)WriteEnterprisenumber:(CProtocolStream*)ps;

-(void)WriteUsernumber:(CProtocolStream*)ps;

-(NSData*)WriteProtocolStreamEncodeCompress:(CProtocolStream*)ps;

-(CProtocolStream*)ReadProtocolStreamEncodeCompress:(CProtocolStream*)ps;

+(CProtocolStream*)ReadProtocolDataEncodeCompress:(NSData*)data;

@end
